/**
 * Copyright (c) 快宝网络 kuaidihelp.com Co., Ltd. All Rights Reserved 禁止外泄以及用于其它的商业用途
 */

import React from "react";
import Exception from "@/components/Exception";
import { connect } from "dva";

const AuthorizedNoMatch = ({ globalUserInfo: { key } }) => (
  <Exception
    type="403"
    title="无权使用"
    desc={
      key == "yz" ? (
        <div>
          <p>该功能暂未开通，如需使用，请联系快宝公司！</p>
          <p>服务QQ群：13818443483</p>
          <p>微信号：kbyz1688</p>
          <p />
        </div>
      ) : null
    }
  />
);

export default connect(({ setting }) => ({
  globalUserInfo: setting.options,
}))(AuthorizedNoMatch);
